import request from "@/utils/request";

// 分页
export function clazzPage(data) {
  return request({
    url: '/clazzs/page',
    method: 'post',
    data
  })
}

export function changeClazzState(data) {
  return request({
    url: "/clazzs/state",
    method: 'post',
    data
  })
}


export function clazzOne(id) {
  return request({
    url: "/clazzs/one/" + id,
    method: 'get'
  })
}

export function clazzAddOrUpdate(data) {
  return request({
    url: "/clazzs/insert/edit",
    method: 'post',
    data
  })
}


export function clazzDelete(id) {
  return request({
    url: "/clazzs/remove/" + id,
    method: 'get'
  })
}


export function clazzList() {
  return request({
    url: "/clazzs/list",
    method: 'get'
  })
}
